#include <stdio.h>

#define ONE (1<<1)
#define TWO (1<<2)
#define FOUR (1<<3)
#define EIGHT (1<<4)

void identify(int flag)
{
    if(flag&ONE)
    {
        printf("function1\n");
    }
    if(flag&TWO)
    {
        printf("function2\n");
    }
    if(flag&FOUR)
    {
        printf("function3\n");
    }
    if(flag&EIGHT)
    {
        printf("function4\n");
    }
}


int main()
{
    printf("--------------------\n");
    identify(ONE);
    printf("--------------------\n");
    identify(ONE|TWO);
    printf("--------------------\n");
    identify(ONE|TWO|FOUR);
    printf("--------------------\n");
    identify(ONE|TWO|FOUR|EIGHT);
    printf("--------------------\n");
    return 0;
}